package com.iwop.moto.service.impl;

import com.iwop.moto.model.SuperRecordModel;
import com.iwop.moto.service.BaseService;
import com.iwop.moto.service.DistrictService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author  liuwb by 2016-08-31
 * @explain 全国统一四级分区 [ 省、市、区/县、镇/乡/街道 ]
 * @ver     Create by 1.0
 */
@Service
public class DistrictServiceImpl extends BaseService implements DistrictService {


    /**
     * @author:  liuwb by 2016-08-31
     * @explain: 根据动态参数查询区域信息
     * @param:  param_id    主键 (选填)
     * @param:  param_level 区域等级(选填)
     * @param:  param_upid  上级id(选填)
     */
    public List<SuperRecordModel> findDistrictByParam(SuperRecordModel SRModel){
        return getSqlSession().selectList("FDistrictMapper.findDistrictByParam",SRModel);
    }

}
